Skip to content

Conversation

@jescalada
Copy link
Contributor

@jescalada jescalada commented Sep 14, 2025

Fixes #1150, built on top of #1166.

Not all tests were perfectly refactored from Chai/Mocha -> Vitest. Some required partial or total rewriting to get them to play nice.

Some tests, specifically the proxy-related tests (proxy.test.ts, testProxy.test.ts and most importantly testProxyRoute.test.ts) have been very problematic for some reason - the tests in testPush.test.ts seem to fail in the CI when some of the proxy tests execute prior. They fail on the first execution locally, and then pass without issue (maybe a caching/cleanup problem).

Coverage has dropped somewhat to 80.5%, but we should see an increase after removing unused/untested code such as plugin stuff.

Note that the CI is failing due to the new Blue Oak license.

jescalada and others added 30 commits August 24, 2025 09:39
Co-authored-by: j-k <dev@j-k.io>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Co-authored-by: j-k <dev@j-k.io>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Co-authored-by: j-k <dev@j-k.io>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Co-authored-by: j-k <dev@j-k.io>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
jescalada and others added 8 commits November 20, 2025 09:57
Co-authored-by: Kris West <kristopher.west@natwest.com>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Co-authored-by: Kris West <kristopher.west@natwest.com>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Co-authored-by: Kris West <kristopher.west@natwest.com>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
@jescalada jescalada force-pushed the 1150-vitest-migration-from-service branch from 4b9b89b to 61d349f Compare November 21, 2025 13:17
@jescalada
Copy link
Contributor Author

@kriswest I think this is ready for another look - hoping to get the v2 release ready soon!

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the logging cleanup and email comparison fix. Still had a couple of type overrides I wasn't sure you needed... worth leaving a comment if it is needed.

The only lingering issue I see is the proxy tests. Logging errors on start/stop might be worth doing (as it appears not to have stopped...). If that doesn't turn up the answer then it should go on an issue so we can get this merged.

@jescalada
Copy link
Contributor Author

@kriswest Thanks for taking another look! Hoping it's ready to go now 😃

Co-authored-by: Kris West <kristopher.west@natwest.com>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
jescalada and others added 2 commits November 28, 2025 14:25
Co-authored-by: Kris West <kristopher.west@natwest.com>
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate tests from Mocha + JS to Vitest + TS

4 participants